<template>
	<view class="page" :style="themeColor">
		<view
			class="flex flex-direction flex-wrap align-stretch benben-position-layout flex platformCustomerService_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between platformCustomerService_fd0_0'>
				<view class='flex flex-wrap align-center platformCustomerService_fd0_0_c0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<text class='fu-iconfont2  platformCustomerService_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='platformCustomerService_fd0_0_c1_c0'>联系我们</text>
				</view>
				<view class='flex align-center justify-end platformCustomerService_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#F35D2A"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<block v-else>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout">
				<image class='platformCustomerService_fd1_0' mode="aspectFill" :src='STATIC_URL+"504.png"'></image>
				<text class='platformCustomerService_fd1_1'>{{dataDetalis.service_hotline}}</text>
				<view class='flex flex-wrap align-center platformCustomerService_fd1_2'>
					<text class='platformCustomerService_fd1_2_c0'>工作时间 ：</text>
					<text class='platformCustomerService_fd1_2_c1'>{{dataDetalis.service_work_time}}</text>
				</view>
				<button class='platformCustomerService_fd1_3' @tap.stop="getPhone">拨打电话</button>
			</view>
			<!---flex布局flex布局结束-->
		</block>

	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"isShow": true,
				"popupShow1681369487501": false,
				"dataDetalis": {
					"service_hotline": "",
					"service_time": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.dataDetalisFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取客服信息
			async dataDetalisFunc() {
				//请求方法
				//数据验证

				let datadataDetalis = await this.$api.post(global.apiUrls.post63a6af1d5fc8e, {

				});
				this.isShow = false;
				if (datadataDetalis.data.code != 1) {
					this.$message.info(datadataDetalis.data.msg);
					return
				}
				let infodataDetalis = datadataDetalis.data;
				this.dataDetalis = infodataDetalis.data;
				console.log(this.dataDetalis);
			},
			getPhone() {
				let _this = this;
				uni.makePhoneCall({
					phoneNumber: _this.dataDetalis.service_hotline,
					success: function() {
						console.log('拨打电话成功');
					},
					fail() {
						console.log('打电话失败了');
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.platformCustomerService_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.platformCustomerService_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 200rpx;
	}

	.platformCustomerService_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.platformCustomerService_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
		font-weight: 500;
	}

	.platformCustomerService_fd0_0_c0 {
		width: 200rpx;
	}

	.platformCustomerService_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.platformCustomerService_fd1_3 {
		background: #F35D2A;
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		font-size: 28rpx;
		color: #fff;
		width: 480rpx;
		height: 80rpx;
		line-height: 80rpx;
		font-weight: 500;
	}

	.platformCustomerService_fd1_2_c1 {
		color: #999999;
		font-size: 26rpx;
		font-weight: 400;
		line-height: 41rpx;
	}

	.platformCustomerService_fd1_2_c0 {
		color: #999999;
		font-size: 26rpx;
		font-weight: 400;
		line-height: 41rpx;
	}

	.platformCustomerService_fd1_2 {
		margin: 16rpx 0rpx 56rpx 0rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #666666;
	}

	.platformCustomerService_fd1_1 {
		font-size: 48rpx;
		font-weight: 500;
		color: #333333;
	}

	.platformCustomerService_fd1_0 {
		width: 220rpx;
		height: 220rpx;
		margin: 120rpx 0rpx 24rpx 0rpx;
	}

	.platformCustomerService_flex_2 {
		background: #fff;
		margin: 0rpx 105rpx 0rpx 105rpx;
		background-size: #eee;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 0rpx 0rpx 0rpx;
	}

	.platformCustomerService_fd2_3_c1 {
		background: transparent;
		line-height: 45rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: rgba(62, 128, 246, 1);
		padding: 24rpx 103rpx 24rpx 99rpx;
	}

	.platformCustomerService_fd2_3_c0 {
		border-right: 1px solid #EEEEEE;
		background: transparent;
		line-height: 45rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 24rpx 103rpx 24rpx 103rpx;
	}

	.platformCustomerService_fd2_2 {
		background: rgba(238, 238, 238, 1);
		width: 540rpx;
		height: 1rpx;
		background-size: #eee;
	}

	.platformCustomerService_fd2_1 {
		margin: 40rpx 0rpx 48rpx 0rpx;
	}

	.platformCustomerService_fd2_0 {
		font-weight: 500;
		font-size: 32rpx;
		line-height: 45rpx;
	}
</style>